export default {
	data() {
		return {
			safeAreaTop: 0 ,// 统一管理安全区域顶部间距，
			statusBarHeight: 0,
			safeBottomHeight: 0,
			fullNavHeight: 0,
			fullTabHeight: 0,
		};
	},
	onLoad() {
		// 统一计算逻辑：44 + 设备安全区域顶部高度（px）
		const res = uni.getSystemInfoSync();
		this.statusBarHeight = res.statusBarHeight;
		this.safeAreaTop = res.safeAreaInsets.top;
		this.fullNavHeight = 44 + res.statusBarHeight;
		this.fullTabHeight = 49 + res.safeAreaInsets.bottom;
//		console.log('fullNavHeight ====',this.fullNavHeight);
//		console.log('fullTabHeight ====',this.fullTabHeight);
	}
};

